<f:view xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:w="http://www.apusic.com/jsf/widget" xmlns:layout="http://www.apusic.com/jsf/layout"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:ajax="http://www.apusic.com/jsf/ajax"
	renderKitId="AJAX">
	<w:head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<w:stylesheet src="/css/kmp4.css" type="text/css"></w:stylesheet>
		<w:script src="/javascript/k4.js" type="text/javascript" language="UTF-8"></w:script>
		<script>
		//<![CDATA[
		function deleteConfirm(){
			if(listHumanGridJsvar.getSelections().length == 0){
				alert("请选择一条记录！");
				return false;
			}
			return showConfirm('你确定要删除吗？');
		}
		function editConfirm(){
			if(listHumanGridJsvar.getSelections().length == 0){
				alert("请选择一条记录！");
				return false;
			}
			return true;
		}
		function showWindow(title){
			var window_rd=window.parent.window_rd;
			window_rd.setTitle(title);
			window_rd.show();
		}
		function changeSrc(url,title){
			var iframe_rd=window.parent.iframe_rd;
			iframe_rd.location.href=url;
			showWindow(title);
		}
		//]]>
		</script>
	</w:head>
	<w:page title="关联业务系统用户">
		<layout:panel border="false" autoHeight="true" autoWidth="true" styleClass="k4-view">
			<layout:panel id="viewtoolbar" border="false" autoHeight="true" autoWidth="true"
				styleClass="k4-view-tool">
				<w:form>
					<w:toolBar>
						<w:button label="分配所属用户"
							image="#{facesContext.externalContext.requestContextPath}/images/create.gif" id="createHuman"
							immediate="true" />
						<w:separator />
						<w:button label="修改所属用户"
							image="#{facesContext.externalContext.requestContextPath}/images/edit.gif" id="editHuman"
							onclick="return editConfirm()" />
						<w:separator />
						<w:button label="删除所属用户"
							image="#{facesContext.externalContext.requestContextPath}/images/delete.gif" id="deleteHuman"
							onclick="return deleteConfirm();" />
					</w:toolBar>
				</w:form>
			</layout:panel>
			<w:dataGrid id="listHumanGrid" toolBarPosition="bottom" rows="4" paged="true" border="false"
				showRowNumber="true" autoHeight="true" jsvar="listHumanGridJsvar" var="human" singleSelect="true"
				styleClass="k4-view-datagrid" forceFit="true">
				<w:outputColumn header="系统名称" width="50" value="#{human.system.systemName}"></w:outputColumn>
				<w:outputColumn header="用户名称" width="150" value="#{human.humanName}"></w:outputColumn>
				<w:pagingToolbar for="listHumanGrid" displayInfo="true" displayMsg="显示 {0} - {1}，共 {2} 条" />
			</w:dataGrid>
		</layout:panel>
	</w:page>
</f:view>